package com.ruoyi.questionPushRecord.domain;

import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 圈子题目推送记录对象 circle_question_push_record
 * 
 * @author 区嘉盛
 * @date 2025-06-26
 */
@Schema(description = "圈子题目推送记录对象")
public class CircleQuestionPushRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 自增ID */
    @Schema(title = "自增ID")
    @Excel(name = "自增ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 圈子ID */
    @Schema(title = "圈子ID")
    @Excel(name = "圈子ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long circleId;

    /** 题目ID */
    @Schema(title = "题目ID")
    @Excel(name = "题目ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long questionId;

    /** AI生成文本ID */
    @Schema(title = "AI生成文本ID")
    @Excel(name = "AI生成文本ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long generatedTextId;

    /** 推送时间 */
    @Schema(title = "推送时间")
    @Excel(name = "推送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime pushTime;

    /** 推送状态（0-失败 1-成功） */
    @Schema(title = "推送状态（0-失败 1-成功）")
    @Excel(name = "推送状态", readConverterExp = "0=-失败,1=-成功")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pushStatus;

    /** 创建人 */
    @Schema(title = "创建人")
    private String createdBy;

    /** 创建时间 */
    @Schema(title = "创建时间")
    private LocalDate createdTime;

    /** 更新人 */
    @Schema(title = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @Schema(title = "更新时间")
    private LocalDate updatedTime;

    /** 删除标志 0-未删除 1-已删除 */
    @Schema(title = "删除标志 0-未删除 1-已删除")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long deletedFlag;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setCircleId(Long circleId) 
    {
        this.circleId = circleId;
    }

    public Long getCircleId() 
    {
        return circleId;
    }


    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }


    public void setGeneratedTextId(Long generatedTextId) 
    {
        this.generatedTextId = generatedTextId;
    }

    public Long getGeneratedTextId() 
    {
        return generatedTextId;
    }


    public void setPushTime(LocalDateTime pushTime) {this.pushTime = pushTime;}

    public LocalDateTime getPushTime() {return pushTime;}


    public void setPushStatus(Long pushStatus) 
    {
        this.pushStatus = pushStatus;
    }

    public Long getPushStatus() 
    {
        return pushStatus;
    }


    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }


    public void setCreatedTime(LocalDate createdTime) 
    {
        this.createdTime = createdTime;
    }

    public LocalDate getCreatedTime() 
    {
        return createdTime;
    }


    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }


    public void setUpdatedTime(LocalDate updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public LocalDate getUpdatedTime() 
    {
        return updatedTime;
    }


    public void setDeletedFlag(Long deletedFlag) 
    {
        this.deletedFlag = deletedFlag;
    }

    public Long getDeletedFlag() 
    {
        return deletedFlag;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("circleId", getCircleId())
            .append("questionId", getQuestionId())
            .append("generatedTextId", getGeneratedTextId())
            .append("pushTime", getPushTime())
            .append("pushStatus", getPushStatus())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("deletedFlag", getDeletedFlag())
            .toString();
    }
}
